<template>
  <div id="app">

   <router-view />

  </div>
</template>

<script>

export default {
  name: "App",
  components: {},
   data () {
    return {
      keepAliveList: this.$store.getters['MobilePhone/getKeepAliveList'],
    }
  },
  computed: {
    // 获取缓存列表
    getKeepAliveList () {
      return this.$store.getters['MobilePhone/getKeepAliveList']
    },
    key () {
      return this.$route.path
    }
  },
  watch: {
    getKeepAliveList (NEW, old) {
      this.keepAliveList = NEW
    }
}
}
</script>
